package com.hk.service.business.parser;

import com.hk.enums.ContentTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ParserBusiness {

    @Autowired
    private CSVParser csvParser;

    @Autowired
    private JSONParser jsonParser;


    public void parserByType(ContentTypeEnum contentTye) {
        switch (contentTye) {
            case CSV:
                csvParser.parse("");
                break;
            case JSON:
                jsonParser.parse("");
                break;
            default:
                break;
        }

    }

}
